local skel = fk.CreateSkill{--定义
  name = "knu__zongxian",
}

Fk:loadTranslationTable{--翻译
  ["knu__zongxian"] = "宗燹",
  [":knu__zongxian"] = "你可以将两张手牌当【杀】/【借刀杀人】使用，并令目标角色获得另一状态下的技能直到其使用之。",

  ["#knu__zongxian_ask"] = "宗燹：你可以将两张手牌当【杀】/【借刀杀人】使用，并令目标角色获得另一状态下的技能直到其使用之",

  ["$knu__zongxian1"] = "驱龙造燹，斗祸为宗。",
  ["$knu__zongxian2"] = "薪火相传，该到你了。",
}

skel:addEffect("viewas", {
  pattern = "slash,klee__collateral",
  prompt = "#knu__zongxian_ask",
  interaction = function(self, player)
    local names = player:getViewAsCardNames(skel.name, {"slash","klee__collateral"})
    return UI.CardNameBox {choices = names, all_choices = {"slash","klee__collateral"}}
  end,
  handly_pile = true,
  filter_pattern = {
    min_num = 2,
    max_num = 2,
    pattern = ".|.|.|hand",
  },
  view_as = function(self, player, cards)
    if #cards ~= 2 then return end
    local c = Fk:cloneCard(self.interaction.data)
    c:addSubcards(cards)
    c.skillName = skel.name
    return c
  end,
  enabled_at_response = function (self, player, response)
    return not response
  end,
  before_use = function (self, player, use)
    local room = player.room
    if #use.tos == 0 then return end
    if use.card.name == "slash" then
      for _, p in ipairs(use.tos) do
        room:handleAddLoseSkills(p,"knu__zongxian_collateral")
      end
    else
      for _, p in ipairs(use.tos) do
        room:handleAddLoseSkills(p,"knu__zongxian_slash")
      end
    end
  end
})

return skel